Repository navigation
Conversation
) supervision_step session GET: read the HTTP status via curl -w - only a 404 is a genuinely gone session; 401/403/5xx, transport failure, or a 200 with no session object is unknown state and the binding is left alone. Previously an error body was parsed as session-gone regardless of status. Recovery DELETE: add curl -f so an HTTP error (e.g. 401, rc 22) no longer satisfies the returncode==0 gate for the recovery bind - a failed delete records the failure and never binds, closing the duplicate-execution shape #7367 forbids. Tests: stub harness now appends the -w status line and models delete rc; new tests pin that a 401 session GET leaves the binding alone and a 401 DELETE never binds. Oracle: an HTTP error is unknown state, never absence. test_claimant 12/12, test_poll 50/50 on the laptop.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 36 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
agent-note:v1
|
Fixes the #7367 residual (queue task 14229): claimant supervision treated HTTP errors as session absence in two places.
Session GET (supervision_step): the GET now carries
curl -w "\n%{http_code}"and the status decides: only 404 is a genuinely gone session; 401/403/5xx, a transport failure, or a 200 with no session object is unknown state and the binding is left alone. Previously any error body parsed as "session gone".Recovery DELETE gate: the zero-message recovery DELETE now uses
curl -f, so an HTTP error (e.g. 401 → rc 22) no longer satisfies thereturncode == 0gate for the recovery bind. A failed delete records the failure (with rc) and never binds — closing the duplicate-execution shape #7367 forbids: clearing/replacing a binding while the session still exists.Tests (oracle: an HTTP error is unknown state, never absence): the stub harness appends the
-wstatus line and models DELETE return codes; new tests pin that a 401 session GET produces no candidate/delete/bind and that a simulated 401 DELETE never binds. Existing gone-session recovery still passes.python3 -m unittest pm-stack/opencode-claimant/test_claimant.py— 12/12 OK (laptop)python3 -m unittest pm-stack/opencode-claimant/test_poll.py— 50/50 OK (laptop)Scope is exactly the packet's: supervision delete gate + session-get error handling in
pm-stack/opencode-claimant/claimant.py. The two launch-path cleanup DELETEs (wrong-location / bind-failed, results ignored, nothing gated on them) are unchanged. Refs #7367.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.